package o;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class bbv {
    private SharedPreferences ˋ;

    public bbv(String str) {
        this.ˋ = bbo.ˎ().getSharedPreferences(str, 0);
    }

    public void ˋ(String str, String str2) {
        try {
            Editor edit = this.ˋ.edit();
            edit.putString(str, str2);
            edit.apply();
        } catch (Exception e) {
            bbn.ˎ.ˊ("BaseSharedPreferences", "putString error!!key:" + str);
        }
    }

    public String ˎ(String str, String str2) {
        try {
            str2 = this.ˋ.getString(str, str2);
        } catch (Exception e) {
            this.ˋ.edit().remove(str).apply();
        }
        return str2;
    }
}
